<%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="Private_Config_SQL_Default" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="./JS/editor.js"></script>
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:CollapseSection runat="server" Expanded="true" Title="Direct SQL" WithFooter="false">
	<Flux:ShadePadBox runat="server">
	Enter either direct SQL to execute or enter a path in the format ~/*** to scan for .sql files to execute.
	<div align="right">
		<asp:LinkButton runat="server" ID="btnBigger" Text="Bigger" OnClick="btnBigger_Click"/>	
	</div>
	</Flux:ShadePadBox>
	<asp:TextBox runat="server" ID="input" Width="100%" Height="100px" TextMode="MultiLine" OnKeyDown="return editorKeys( arguments[0], this );"/>
</Flux:CollapseSection>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button Runat="server" CssClass="button" ID="btnExecute" Text="Execute" OnClick="btnExecute_Click"/>
	<asp:CheckBox runat="server" ID="chkBatch" Text="Batch transaction (Any .sql fails, all fail)" Checked=True/>
</Flux:PadBox>
</Flux:Section>

<Flux:CollapseSection runat="server" Title="Data" ID="secData" Visible="false">
<Flux:StandardDataGrid runat="server" ID="datagrid" AllowPaging="false" AutoGenerateColumns="true" ClickRowSelect="False" AllowSorting="false"></Flux:StandardDataGrid>
</Flux:CollapseSection>
<Flux:CollapseSection runat="server" Title="Output" ID="secOutput" Visible="false">
	<Flux:ShadePadBox runat="server">
	<asp:Literal ID="output" runat="server"/>
	</Flux:ShadePadBox>
</Flux:CollapseSection>

</Flux:HostTable>
</form>
</body>
</html>
